package com.yuw.hw.abstractdemo;

public abstract class Person {
	// 属性

	private String perName;
	private int perAge;

	// 行为
	// 思索行为
	// 抽象方法
	public abstract void doThinking();

	// 抽象行为
	public abstract void doDying();

	/**
	 * 饮食行为
	 */
	public void doEating() {
		System.out.println(perName + " is eating...");
	}

	public String getPerName() {
		return perName;
	}

	public void setPerName(String perName) {
		this.perName = perName;
	}

	public int getPerAge() {
		return perAge;
	}

	public void setPerAge(int perAge) {
		this.perAge = perAge;
	}

}
